<?php

use App\Http\Controllers\HomeController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

// 首页路由
Route::get('/', [HomeController::class, 'index'])->name('home');

// 关于我们页面
Route::get('/about', [HomeController::class, 'about'])->name('about');
Route::get('/domain', [HomeController::class, 'domain'])->name('domain');
Route::get('/domain/detail', [HomeController::class, 'domainDetail'])->name('domain-detail');
Route::get('/lawyer', [HomeController::class, 'layer'])->name('layer');
Route::get('/case', [HomeController::class, 'case'])->name('case');
Route::get('/case/detail', [HomeController::class, 'caseDetail'])->name('case-detail');
Route::get('/news', [HomeController::class, 'news'])->name('news');
Route::get('/news/detail', [HomeController::class, 'newDetails'])->name('news-detail');
Route::get('/contact', [HomeController::class, 'contact'])->name('contact');

// 原来的默认欢迎页
Route::get('/welcome', function () {
    return view('welcome');
});

// 消息提交路由
Route::post('/message', 'App\Http\Controllers\MessageController@store')->name('message.store');
